package com.ryskoo.customer.vendordiscounts.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * 优惠设置
 * @author BeHappy
 */
@Entity
@Table(name = "CUS_VENDOR_DISCOUNTS")
public class VendorDiscountsPO extends BasicPO {

	private static final long serialVersionUID = -5429926412335505625L;

	/**
	 * 卖家uuid
	 */
	@Column(name = "vendor_uuid", columnDefinition = "char", length = 32)
	private String vendorUuid;
    
	/** 满减是否开启 */
    @Column(name = "mj_open")
    private boolean mjOpen;

	/** 新用户立减是否开启 */
	@Column(name = "lj_open")
	private boolean ljOpen;

	/**
	 * 满金额money1
	 */
	@Column(name = "money1", columnDefinition = "decimal", length = 11, precision = 2)
	private double money1;

	/**
	 * 减金额free1
	 */
	@Column(name = "free1", columnDefinition = "decimal", length = 11, precision = 2)
	private double free1;

	/**
	 * money2
	 */
	@Column(name = "money2", columnDefinition = "decimal", length = 11, precision = 2)
	private double money2;

	/**
	 * free2
	 */
	@Column(name = "free2", columnDefinition = "decimal", length = 11, precision = 2)
	private double free2;

	/**
	 * money3
	 */
	@Column(name = "money3", columnDefinition = "decimal", length = 11, precision = 2)
	private double money3;

	/**
	 * free3
	 */
	@Column(name = "free3", columnDefinition = "decimal", length = 11, precision = 2)
	private double free3;


	/**
	 * 立减金额
	 */
	@Column(name = "lj_free", columnDefinition = "decimal", length = 11, precision = 2)
	private double ljFree;

	public String getVendorUuid() {
		return vendorUuid;
	}

	public void setVendorUuid(String vendorUuid) {
		this.vendorUuid = vendorUuid;
	}

	public boolean isMjOpen() {
		return mjOpen;
	}

	public void setMjOpen(boolean mjOpen) {
		this.mjOpen = mjOpen;
	}

	public boolean isLjOpen() {
		return ljOpen;
	}

	public void setLjOpen(boolean ljOpen) {
		this.ljOpen = ljOpen;
	}

	public double getMoney1() {
		return money1;
	}

	public void setMoney1(double money1) {
		this.money1 = money1;
	}

	public double getFree1() {
		return free1;
	}

	public void setFree1(double free1) {
		this.free1 = free1;
	}

	public double getMoney2() {
		return money2;
	}

	public void setMoney2(double money2) {
		this.money2 = money2;
	}

	public double getFree2() {
		return free2;
	}

	public void setFree2(double free2) {
		this.free2 = free2;
	}

	public double getMoney3() {
		return money3;
	}

	public void setMoney3(double money3) {
		this.money3 = money3;
	}

	public double getFree3() {
		return free3;
	}

	public void setFree3(double free3) {
		this.free3 = free3;
	}

	public double getLjFree() {
		return ljFree;
	}

	public void setLjFree(double ljFree) {
		this.ljFree = ljFree;
	}

	@Override
	public String toString() {
		return "VendorDiscountsPO{" +
				"vendorUuid='" + vendorUuid + '\'' +
				", mjOpen=" + mjOpen +
				", ljOpen=" + ljOpen +
				", money1=" + money1 +
				", free1=" + free1 +
				", money2=" + money2 +
				", free2=" + free2 +
				", money3=" + money3 +
				", free3=" + free3 +
				", ljFree=" + ljFree +
				'}';
	}
}
